package com.bicon.base.data.pojo.botu;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 订单详细信息表
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("order_detail")
public class OrderDetail extends Model<OrderDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 商品货号
     */
    @TableField("product_code")
    private String productCode;
    /**
     * 商铺id
     */
    @TableField("store_id")
    private String storeId;
    /**
     * 商品库存id
     */
    @TableField("goods_id")
    private String goodsId;
    /**
     * 商品类型 1 定制 ，2非定制
     */
    @TableField("goods_type")
    private String goodsType;
    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;
    /**
     * 商品数量
     */
    @TableField("goods_number")
    private Integer goodsNumber;
    /**
     * sku名称
     */
    @TableField("sku_name")
    private String skuName;
    /**
     * sku图片
     */
    @TableField("item_image")
    private String itemImage;
    /**
     * 市场价
     */
    @TableField("goods_market_price")
    private BigDecimal goodsMarketPrice;
    /**
     * 平台价
     */
    @TableField("goods_platform_price")
    private BigDecimal goodsPlatformPrice;
    /**
     * 删除标志：0正常，1删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * 优惠券id
     */
    @TableField("promotions_discount_id")
    private String promotionsDiscountId;
    /**
     * 商品类目id
     */
    @TableField("category_id")
    private String categoryId;
    /**
     * 分组订单id
     */
    @TableField("main_order_id")
    private String mainOrderId;
    /**
     * 子订单id
     */
    @TableField("child_order_id")
    private String childOrderId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public String getItemImage() {
        return itemImage;
    }

    public void setItemImage(String itemImage) {
        this.itemImage = itemImage;
    }

    public BigDecimal getGoodsMarketPrice() {
        return goodsMarketPrice;
    }

    public void setGoodsMarketPrice(BigDecimal goodsMarketPrice) {
        this.goodsMarketPrice = goodsMarketPrice;
    }

    public BigDecimal getGoodsPlatformPrice() {
        return goodsPlatformPrice;
    }

    public void setGoodsPlatformPrice(BigDecimal goodsPlatformPrice) {
        this.goodsPlatformPrice = goodsPlatformPrice;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getPromotionsDiscountId() {
        return promotionsDiscountId;
    }

    public void setPromotionsDiscountId(String promotionsDiscountId) {
        this.promotionsDiscountId = promotionsDiscountId;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getMainOrderId() {
        return mainOrderId;
    }

    public void setMainOrderId(String mainOrderId) {
        this.mainOrderId = mainOrderId;
    }

    public String getChildOrderId() {
        return childOrderId;
    }

    public void setChildOrderId(String childOrderId) {
        this.childOrderId = childOrderId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
        "id=" + id +
        ", productCode=" + productCode +
        ", storeId=" + storeId +
        ", goodsId=" + goodsId +
        ", goodsType=" + goodsType +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", skuName=" + skuName +
        ", itemImage=" + itemImage +
        ", goodsMarketPrice=" + goodsMarketPrice +
        ", goodsPlatformPrice=" + goodsPlatformPrice +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", promotionsDiscountId=" + promotionsDiscountId +
        ", categoryId=" + categoryId +
        ", mainOrderId=" + mainOrderId +
        ", childOrderId=" + childOrderId +
        "}";
    }
}
